import { post } from './request'

interface Login {
  userName: string
  password: string
}
interface LoginRes {
  id: string
  token: string
  userName: string
}
export const login = (data: Login) => post<Login, LoginRes>('/api/auth/login', data)
